vector_projection Function

public pure function vector_projection(x, y) result(rst)

Computes the vector pojection of vector x onto vector y. The vector projection is defined such that

Arguments

Type IntentOptional Attributes Name
real(kind=real64), intent(in), dimension(:) :: x

The vector to project.

real(kind=real64), intent(in), dimension(size(x)) :: y

The vector onto which x should be projected.

Return Value real(kind=real64), (3)

The vector projection of x onto y.


Contents